{extend name="base/index"/} 
{block name="page_location"} {/block}
{block name="body"}
<div class="row">
	<div class="col-12">
		<div class="page-title-box">
			<div class="page-title-right">
				<ol class="breadcrumb m-0">
					<li class="breadcrumb-item">
						<a href="{:url('index/index')}">管理中心</a>
					</li>
					<li class="breadcrumb-item active"><i class="iconfont icon-angle-right"></i>我的账户设置</li>
				</ol>
			</div>
			<h4 class="page-title">
            	{$page_title}
            </h4>
		</div>
	</div>
</div>
<div class="row" id="profile_page">
	<div class="col-12">
		<div class="card">
			<div class="card-body">
				<ul class="nav nav-tabs nav-justified nav-bordered mb-3">
					<li class="nav-item">
						<a href="#home-b2" data-toggle="tab" aria-expanded="false" class="nav-link active">
							<i class="mdi mdi-home-variant d-lg-none d-block mr-1"></i>
							<span class="d-none d-lg-block">我的基本设置</span>
						</a>
					</li>
					<li class="nav-item">
						<a href="#profile-b2" data-toggle="tab" aria-expanded="true" class="nav-link ">
							<i class="mdi mdi-account-circle d-lg-none d-block mr-1"></i>
							<span class="d-none d-lg-block">修改我的密码</span>
						</a>
					</li>
				</ul>
				<div class="tab-content">
					<div class="tab-pane show active" id="home-b2">
						<form action="#" method="post" class="form-horizontal" id="change_profile_frm">
						    <div class="form-group row mb-2">
						        <label for="inputEmail3" class="col-3 col-form-label">管理员类型：</label>
						        <div class="col-5">
						            <input type="text" class="form-control-plaintext" readonly="readonly" disabled="disabled" value="{$AdminInfo.type==1 ? '超级管理员':'管理员' }">
						        </div>
						    </div>
						    <div class="form-group row mb-2">
						        <label for="inputPassword3" class="col-3 col-form-label">管理员名：</label>
						        <div class="col-5">
						            <input type="text" class="form-control-plaintext"  readonly="readonly" disabled="disabled" value="{$AdminInfo.username}">
						        </div>
						    </div>
						    <div class="form-group row mb-2">
						        <label for="inputPassword3" class="col-3 col-form-label">管理员昵称：</label>
						        <div class="col-5">
						            <input type="text" class="form-control form_check"  name="nickname" value="{$AdminInfo.nickname}" data-type="name" data-len="5-20" nullmsg="管理员昵称不能为空" errormsg="管理员昵称只能由5到20位的字母、汉字组成">
						        </div>
						    </div>	
						    <div class="form-group row mb-2">
						        <label for="inputPassword3" class="col-3 col-form-label">管理员头像：</label>
						        <div class="col-5">
						           <div class="profile_faceupload ipt_check" data-type="upload" attr-inputname="facepic" nullmsg="管理员头像没有上传" attr-value="{$AdminInfo.facepic}"  isCompress="1"></div>
						        </div>
						    </div>		
						    <div class="form-group row mb-2">
						        <label for="inputPassword3" class="col-3 col-form-label">管理状态：</label>
						        <div class="col-5">
						            <input type="text" class="form-control-plaintext" readonly="readonly" disabled="disabled" value="{$AdminInfo.status==0 ? '已启用':'已禁用' }">
						        </div>
						    </div>							    
						    <div class="form-group row mb-2">
						        <label for="inputPassword3" class="col-3 col-form-label">最近登录时间：</label>
						        <div class="col-5">
						            <input type="text" class="form-control-plaintext" readonly="readonly" disabled="disabled" value="{$AdminInfo.logintime|date=" Y-m-d H:i:s ",### }">
						        </div>
						    </div>	
						    <div class="form-group row mb-2">
						        <label for="inputPassword3" class="col-3 col-form-label">最近登录IP：</label>
						        <div class="col-5">
						            <input type="text" class="form-control-plaintext" readonly="readonly" disabled="disabled"  value="{$AdminInfo.loginip}">
						        </div>
						    </div>							    
						    <div class="form-group row mb-2">
						        <label for="inputPassword3" class="col-3 col-form-label">注册时间：</label>
						        <div class="col-5">
						            <input type="text" class="form-control-plaintext" readonly="readonly" disabled="disabled"  value="{$AdminInfo.regtime|date=" Y-m-d H:i:s ",### }">
						        </div>
						    </div>	
						    <div class="form-group row mb-2">
						        <label for="inputPassword3" class="col-3 col-form-label">最近登录IP：</label>
						        <div class="col-5">
						            <input type="text" class="form-control-plaintext" readonly="readonly" disabled="disabled"  value="{$AdminInfo.regip}">
						        </div>
						    </div>		
						    <div class="form-group row mb-2">
						        <label for="inputPassword3" class="col-3 col-form-label"></label>
						        <div class="col-5">
						            <button type="submit" class="btn btn-info" id="change_profile_btn">保存设置</button>
						        </div>
						    </div>  
						</form>
					</div>
					<div class="tab-pane " id="profile-b2">
						<form action="#" method="post" class="form-horizontal" id="change_password_frm">
						    <div class="form-group row mb-2">
						        <label for="inputPassword3" class="col-3 col-form-label">旧密码：</label>
						        <div class="col-5">
						            <input type="text" class="form-control password_input form_check"  name="oldpassword" data-type="password" nullmsg="管理员旧密码不能为空" errormsg="管理员旧密码只能由6到12位的字符组成" data-len="6-12" placeholder="请输入旧密码" >
						        </div>
						    </div>	
						    <div class="form-group row mb-2">
						        <label for="inputPassword3" class="col-3 col-form-label">新密码：</label>
						        <div class="col-5">
						            <input type="text" class="form-control password_input form_check"  name="newpassword"  data-type="password" nullmsg="管理员新密码不能为空" errormsg="管理员新密码只能由6到12位的字符组成" data-len="6-12" repeated="repassword" repeated-msg="两次输入的密码不一致" passwordStrong="1" StrongMsg="您的密码强度不够" placeholder="请输入新密码">
						        </div>
						    </div>	
						    <div class="form-group row mb-2">
						        <label for="inputPassword3" class="col-3 col-form-label">确认密码：</label>
						        <div class="col-5">
						            <input type="text" class="form-control password_input form_check"  name="repassword"  placeholder="请输入确认密码">
						        </div>
						    </div>	
						    <div class="form-group row mb-2">
						        <label for="inputPassword3" class="col-3 col-form-label"></label>
						        <div class="col-5">
						            <button type="submit" class="btn btn-info" id="change_password_btn">立即修改</button>
						        </div>
						    </div>						    
						</form>
					</div>
				</div>
			</div>
			<!-- end card-body-->
		</div>
		<!-- end card-->
	</div>
	<!-- end col -->
</div>
{/block} 
{block name="modal_dig"}
<!-- END CONTAINER -->
<!-- Modal -->
{/block}